PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-07-31 10:17:37.306998+00:00 (UTC)
In US/Central Time, this is 2024-07-31 05:17:37.306998-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/3aeab068d0e1d52f717e940c8819cd7eee8e565b8d3e438138644aec458c1b9b.png
We are just generating a random time serie here.
../_images/d0e3ef4ad3c7ddb18e0cf748360ac6283bb37d5828b6c7f350e2fbbc46353466.png
../_images/1e9cf8c930b4f54c328ce3e19b7c58fbfed732a294bf2492d9a452744b7c7b46.png